class VersionConvertor {
  static bool compareVersions(String currentVersion, String minimumVersion) {
    if (currentVersion.isEmpty || minimumVersion.isEmpty) {
      return false;
    }

    List<int> v1 = currentVersion.split('.').map(int.parse).toList();
    List<int> v2 = minimumVersion.split('.').map(int.parse).toList();

    for (int i = 0; i < v1.length || i < v2.length; i++) {
      int component1 = i < v1.length ? v1[i] : 0;
      int component2 = i < v2.length ? v2[i] : 0;

      if (component1 < component2) {
        return true; // currentVersion is less than minimumVersion
      } else if (component1 > component2) {
        return false; // currentVersion is greater than minimumVersion
      }
    }

    return false; // versions are equal
  }
}
